package com.ruoyi.mall.api.domian;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品标签绑定对象 product_tag_bind
 *
 * @author luogongquan
 * @date 2024-10-10
 */
public class ProductTagBind extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 标签di */
    @Excel(name = "标签di")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long tagId;

    /** 商品id */
    @Excel(name = "商品id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long productId;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long parentId;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTagId(Long tagId)
    {
        this.tagId = tagId;
    }

    public Long getTagId()
    {
        return tagId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("tagId", getTagId())
                .append("productId", getProductId())
                .toString();
    }
}
